using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Acms.Bll;
using System.Collections.Generic;

public partial class ListUsers : BaseUserPage
{

    public override Role.Roles[] AllowedRoles
    {
        get { return new Role.Roles[] { Role.Roles.Developer, Role.Roles.MembershipAdministrator, Role.Roles.MembershipViewer }; }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void dsUsers_SelectData(object sender, Acms.DataControls.SelectEventArgs<User> e)
    {
        List<Acms.Bll.User> users = Acms.Bll.User.Search(AcmsContext.SiteId);
        Acms.Bll.User.Sort(users, e.SortExpression);
        e.SetData(users);
    }
}
